<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "{{%short_message}}".
 *
 * @property string $id
 * @property integer $content
 * @property string $tel
 * @property integer $status
 * @property string $created_at
 * @property string $updated_at
 * @property integer $outTime
 * @property integer $res1
 * @property integer $res2
 * @property integer $res3
 */
class ShortMessage extends \yii\db\ActiveRecord      //短信发送表
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return '{{%short_message}}';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['content', 'tel', 'created_at', 'updated_at'], 'required'],
            [['content', 'status', 'outTime', 'res1', 'res2', 'res3'], 'integer'],
            [['created_at', 'updated_at'], 'safe']
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'content' => 'Content',
            'tel' => 'Tel',
            'status' => 'Status',
            'created_at' => 'Create At',
            'updated_at' => 'Update At',
            'outTime' => 'Out Time',
            'res1' => 'Res1',
            'res2' => 'Res2',
            'res3' => 'Res3',
        ];
    }
}
